package com.kaili.zuul.service.impl;

import com.kaili.common.pojo.entity.SysLogEntity;
import com.kaili.common.pojo.entity.SysLoginLogEntity;
import com.kaili.zuul.service.LoginLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoginLogServiceImpl implements LoginLogService {

    @Autowired
	private MongoTemplate mongoTemplate;


	@Override
	public void saveLog(SysLoginLogEntity logBean, String collectionName) {
		mongoTemplate.save(logBean,collectionName);
	}


}